package com.dftdla.server.message.request;

import com.dftdla.server.message.Message;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author 14501
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString(callSuper = true)
public class GroupChatRequestMessage extends Message {
    private String content;
    private Long groupId;
    private Long from;

    public GroupChatRequestMessage(Long from, Long groupId, String content) {
        this.content = content;
        this.groupId = groupId;
        this.from = from;
    }

    @Override
    public int getMessageType() {
        return GROUP_CHAT_REQUEST_MESSAGE;
    }
}
